<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title><%= @title || "management" %></title>
    <%= javascript_include_tag :defaults ,"admin" %>
    <%= javascript_include_tag :fckeditor %>
    <%= yield(:head) %>
    <%= stylesheet_link_tag 'admin' %>
    <%= calendar_date_select_includes %>
  </head>
  <body>
    <div id="wrapper" class="clearfix">
      <div id="header" class="clearfix"><!-- ヘッダー -->
        <div id="head_l">
          <h1><a href="/manage/sessions/home"><img src="/images/admin/logo.jpg" alt="sinoken logo"/></a></h1>
        </div>
        <div id="head_m" class="clearfix">
          <span id="top_title">翡翡网络后能管理</span>
          <div id="head_r" class="clearfix">
            <p id="user_name"></p>
            <ul id="user_menu">
              <li><%= link_to '退出', :controller=>'admin/sessions',:action=>'logout' %></li>
              <li><%= link_to '后前首页', admin_articles_path%></li>
              <li></li>
            </ul>
          </div>
        </div>
      </div>
      <div id="containar" class="clearfix">
        <%= render :partial => "admin/shared/submenu"  %>
        <% if flash[:error] %>
          <div id="error">
            <%= flash[:error] %>
          </div>
        <% end %>
        <% if flash[:notice] %>
          <div id="notice">
            <%= flash[:notice] %>
          </div>
        <% end %>
        <%= yield %>
      </div>
    </div>
  </body>
</html>